﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Petroleum.DB.Model
{
    /// <summary>
    /// Step1 井口信息
    /// </summary>
    public class BasicInf : BaseModel
    {
        public string WellName { get; set; }
        public string TrajectoryType { get; set; }
        public string WellType { get; set; }
        /// <summary>
        /// 地质构造位置
        /// </summary>
        public string LocationOfGeoStructure { get; set; }
        public string NameOfGeoStructure { get; set; }
        /// <summary>
        /// 钻探目的
        /// </summary>
        public string PurposeOfDrilling { get; set; }
        /// <summary>
        /// 目标形成
        /// </summary>
        public string TargetFormation { get; set; }
        /// <summary>
        /// 完井方法
        /// </summary>
        public string WellCompletionMethod { get; set; }
        /// <summary>
        /// TD标准
        /// </summary>
        public string TDCriterion { get; set; }
        /// <summary>
        /// 接口坐标
        /// </summary>
        public WellheadCoordinates Wellhead { get; set; }
        public string GL { get; set; }
        public decimal KB { get; set; } = 0;
        /// <summary>
        /// 水下真实垂直深度
        /// </summary>
        public decimal SSTVD { get; set; }
        /// <summary>
        /// 垂直深度
        /// </summary>
        public decimal DesignTVD { get; set; }

        /// <summary>
        /// 靶点信息
        /// </summary>
        public List<TargetModel> TargetList { get; set; }
    }

    /// <summary>
    /// 井口坐标
    /// </summary>
    public class WellheadCoordinates
    {
        /// <summary>
        /// 经度
        /// </summary>
        public string Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public string Latitude { get; set; }

        public string X { get; set; }
        public string Y { get; set; }
    }


    /// <summary>
    /// 靶点信息
    /// </summary>
    public class TargetModel
    {
        public string Target { get; set; } = string.Empty;

        /// <summary>
        /// 地层信息
        /// </summary>
        public string Formation { get; set; }
        /// <summary>
        /// 靶点的TVD信息
        /// </summary>
        public string TVDOfTarget { get; set; }
        public string TVDOfTargetTo { get; set; }
        /// <summary>
        /// 地层信息:北距
        /// </summary>
        public decimal Northing { get; set; } = 0;
        /// <summary>
        /// 地层信息:东距
        /// </summary>
        public decimal Easting { get; set; } = 0;
        /// <summary>
        /// 误差
        /// </summary>
        public decimal ErrorRadius { get; set; } = 0;
    }
}
